<?php if (!defined('THINK_PATH')) exit(); /*a:8:{s:70:"E:\phpproject\cms\public/../application/admin\view\navigation\add.html";i:1528795053;s:57:"E:\phpproject\cms\application\admin\view\public\base.html";i:1524038995;s:57:"E:\phpproject\cms\application\admin\view\public\head.html";i:1528801557;s:59:"E:\phpproject\cms\application\admin\view\public\header.html";i:1528775905;s:60:"E:\phpproject\cms\application\admin\view\public\sidebar.html";i:1528781746;s:67:"E:\phpproject\cms\application\admin\view\public\content_header.html";i:1524032736;s:64:"E:\phpproject\cms\application\admin\view\public\main_footer.html";i:1524032672;s:59:"E:\phpproject\cms\application\admin\view\public\footer.html";i:1527671971;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>yjfcms-管理后台</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport" />
<!-- Bootstrap 3.3.7 -->
<link rel="stylesheet" href="/static/adminlte/bower_components/bootstrap/dist/css/bootstrap.min.css" />
<!-- Font Awesome -->
<link rel="stylesheet" href="/static/adminlte/bower_components/font-awesome/css/font-awesome.min.css" />
<!-- Ionicons -->
<link rel="stylesheet" href="/static/adminlte/bower_components/Ionicons/css/ionicons.min.css" />
<!-- Theme style -->
<link rel="stylesheet" href="/static/adminlte/dist/css/AdminLTE.min.css" />
<!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="/static/adminlte/dist/css/skins/_all-skins.min.css" />
<!-- Morris chart -->
<link rel="stylesheet" href="/static/adminlte/bower_components/morris.js/morris.css" />
<!-- jvectormap -->
<link rel="stylesheet" href="/static/adminlte/bower_components/jvectormap/jquery-jvectormap.css" />
<!-- Date Picker -->
<link rel="stylesheet" href="/static/adminlte/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css" />
<!-- Daterange picker -->
<link rel="stylesheet" href="/static/adminlte/bower_components/bootstrap-daterangepicker/daterangepicker.css" />
<!-- bootstrap wysihtml5 - text editor -->
<link rel="stylesheet" href="/static/adminlte/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- Google Font -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic" />
<style>
    *{font-family: "Microsoft YaHei";}
    /*搜索和条件查询样式*/
    .flex{display:flex;justify-content: flex-end;}
    .flex-select{padding: 6px 10px;border:1px solid silver;font-size:15px;}
    .flex-input{padding:5px 10px;border:0;height:34px;}
    .flex-input-group{border:1px solid silver;display:flex;}
    .flex-label{height: 36px;line-height: 36px;box-sizing: border-box;padding: 0 10px;background-color: rgba(225,225,225,.5);color: #333;border: 0;font-weight:100;margin-left:5px;}
    #cover_show{max-width:500px;max-height:300px;}
</style>
     
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
      <header class="main-header">
    <!-- Logo -->
    <a href="index2.html" class="logo">
        <!-- mini logo for sidebar mini 50x50 pixels --> <span class="logo-mini">后台</span>
        <!-- logo for regular state and mobile devices --> <span class="logo-lg">yjfcms后台管理</span> </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button"> <span class="sr-only">转换导航</span> </a>
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <!-- Messages: style can be found in dropdown.less-->
                <li class="dropdown messages-menu"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="fa fa-envelope-o"></i> <span class="label label-success">4</span> </a>
                    <ul class="dropdown-menu">
                        <li class="header">你有四条消息</li>
                        <li>
                            <!-- inner menu: contains the actual data -->
                            <ul class="menu">
                                <li>
                                    <!-- start message --> <a href="#">
                                    <div class="pull-left">
                                        <img src="http://www.ogong.net/upimg/2016071811455068.png" class="img-circle" alt="User Image" />
                                    </div> <h4> 销售团队 <small><i class="fa fa-clock-o"></i> 5 分钟前</small> </h4> <p>用户登录...</p> </a> </li>
                                <!-- end message -->

                            </ul>
                        </li>
                        <li class="footer"><a href="#">查看所有消息</a></li>
                    </ul>
                </li>

                <!-- User Account: style can be found in dropdown.less -->
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <img src="/static/images/logo.png" class="user-image" alt="User Image" />
                        <span class="hidden-xs"><?php echo $admin['nickname']; ?></span>
                    </a>
                    <ul class="dropdown-menu">
                        <!-- User image -->
                        <li class="user-header">
                            <img src="/static/images/logo.png" class="img-circle" alt="User Image" />
                            <p> <?php echo $admin['nickname']; ?><small><!--角色--></small>
                            </p>
                        </li>
                        <!-- Menu Footer-->
                        <li class="user-footer">
                            <div class="pull-left">
                                <a href="#" class="btn btn-default btn-flat">资料</a>
                            </div>
                            <div class="pull-right">
                                <a href="<?php echo url('admin/login/logout'); ?>" class="btn btn-default btn-flat">退出</a>
                            </div>
                        </li>
                    </ul>
                </li>
                <!-- Control Sidebar Toggle Button -->
                <li> <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a> </li>
            </ul>
        </div>
    </nav>
</header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
    <!-- Sidebar user panel -->
    <div class="user-panel">
        <div class="pull-left image">
            <img src="/static/images/logo.png" class="img-circle" alt="User Image" />
        </div>
        <div class="pull-left info">
            <p><?php echo $admin['nickname']; ?></p>
            <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
        </div>
    </div>
    <!-- search form -->
    <form action="#" method="get" class="sidebar-form">
        <div class="input-group">
            <input type="text" name="q" class="form-control" placeholder="搜索..." />
            <span class="input-group-btn"> <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i> </button> </span>
        </div>
    </form>
    <!-- /.search form -->
    <!-- sidebar menu: : style can be found in sidebar.less -->
    <ul class="sidebar-menu" id="sidebar-menu" data-widget="tree">
        <li class="header">操作导航</li>



     <?php foreach($navigation as $key => $val ){  ?>
         <li class="treeview">
             <a href="<?php echo $val['url']; ?>">
                 <i class="<?php echo $val['icon']; ?>"></i>
                 <span><?php echo $val['title']; ?></span>
                 <span class="pull-right-container">
                     <i class="fa fa-angle-left pull-right"></i>
                 </span>
             </a>
             <?php if(isset($val['sub'])){?>
             <ul class="treeview-menu">
                 <?php foreach($val['sub'] as $k => $v ){ if(in_array($v['permission'],$admin->permission) || $admin->is_super ){ ?>
                        <li class="<?php if($v['permission'] == $permission){ echo 'active active-sub'; } ?>"><a href="<?php echo $v['url']; ?>"> <i class="<?php echo $v['icon']; ?>"> <?php echo $v['title']; ?></i></a></li>
                     <?php } } ?>
             </ul>
             <?php } ?>
         </li>
     <?php } ?>


    </ul>
</section>
        <!-- /.sidebar -->
    </aside>
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
    <h1> 首页 <small>管理面板</small> </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
        <li class="active">管理面板</li>
    </ol>
</section>
        <!-- Main content -->
        <section class="content">

            <!-- Main row -->
            <div class="row">
                <!-- Left col -->
                <section class="col-lg-12 connectedSortable">

                    
<!-- left column -->
<div class="col-md-12">
    <!-- general form elements -->
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title"><?php echo $title; ?></h3>
        </div>
        <!-- /.box-header -->
        <!-- form start -->
        <form role="form" action="<?php echo url('admin/navigation/handle'); ?>" method="post">
            <div class="box-body">
                <div class="form-group">
                    <label for="title">栏目名称</label>
                    <input type="text" class="form-control" id="title" name="title" placeholder="输入栏目名称">
                </div>
                <div class="form-group">
                    <label for="url">链接</label>
                    <select name="permission" class="form-control" id="url">
                        <?php if(is_array($permission) || $permission instanceof \think\Collection || $permission instanceof \think\Paginator): $i = 0; $__LIST__ = $permission;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
                        <option value="<?php echo $item['url']; ?>"><?php echo $item['title']; ?>----------<?php echo $item['group']; ?></option>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </select>
                </div>
                <div class="form-group">
                    <label for="icon">栏目图标</label>
                    <input type="text" class="form-control" id="icon" name="icon" placeholder="输入图标代码">
                </div>
                <div class="form-group">
                    <label for="pid">上级</label>
                    <select name="pid" class="form-control" id="pid">
                        <option value="0">根目录</option>
                        <?php if(is_array($firstLevel) || $firstLevel instanceof \think\Collection || $firstLevel instanceof \think\Paginator): $i = 0; $__LIST__ = $firstLevel;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
                        <option value="<?php echo $item['id']; ?>"><?php echo $item['title']; ?></option>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </select>
                </div>
                <div class="form-group">
                    <label for="sort">排序</label>
                    <input type="text" class="form-control" id="sort" name="sort" placeholder="输入排序数字 数字越大越靠前">
                </div>
            </div>
            <!-- /.box-body -->

            <div class="box-footer">
                <button type="submit" class="btn btn-primary">提交</button>
                <a href="<?php echo url('admin/navigation/index'); ?>" class="btn btn-warning ">返回列表</a>
            </div>
        </form>
    </div>
    <!-- /.box -->
</div>




                </section>
                <!-- /.Left col -->

            </div>
            <!-- /.row (main row) -->
        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
    <footer class="main-footer">
    <div class="pull-right hidden-xs">
        <b>Version</b> 2.4.0
    </div>
    <strong>Copyright &copy; 2014-2018 <a href="https://adminlte.io">Almsaeed Studio</a>.</strong> All rights reserved.
</footer>
    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        预留
    </aside>
    <!-- /.control-sidebar -->
    <!-- Add the sidebar's background. This div must be placed
          immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
<!-- jQuery 3 -->
<script src="/static/adminlte/bower_components/jquery/dist/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="/static/adminlte/bower_components/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
    $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.7 -->
<script src="/static/adminlte/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Morris.js charts -->
<script src="/static/adminlte/bower_components/raphael/raphael.min.js"></script>
<script src="/static/adminlte/bower_components/morris.js/morris.min.js"></script>
<!-- Sparkline -->
<script src="/static/adminlte/bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="/static/adminlte/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="/static/adminlte/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="/static/adminlte/bower_components/jquery-knob/dist/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="/static/adminlte/bower_components/moment/min/moment.min.js"></script>
<script src="/static/adminlte/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="/static/adminlte/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="/static/adminlte/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- Slimscroll -->
<script src="/static/adminlte/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="/static/adminlte/bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="/static/adminlte/dist/js/adminlte.min.js"></script>

<script type="text/javascript">
    //当前栏目的展开
    $(".active-sub").parent().parent().addClass("active");
    $(".treeview-menu").each(function(index,item){
        if(!$(this).find("li")[0]){
            $(this).parent().remove();
        }
    });

</script>

<script type="text/javascript" src="/static/webuploader/webuploader.js"></script>
<link rel="stylesheet" type="text/css" href="/static/webuploader/webuploader.css">


</body>
</html>